package com.topc.participant.api;

import com.topc.base.api.CommonResult;
import com.topc.participant.model.po.UserInfo;
import com.topc.participant.service.IUserInfoService;
import com.topc.participant.util.SecurityUtil;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.validation.constraints.NotNull;
import java.util.List;

@Api("用户业务开放接口")
@Slf4j
@RestController
@RequestMapping("/open/user")
public class UserOpenController {

    @Autowired
    private IUserInfoService userInfoService;

    @PostMapping("/search-name-list")
    public List<String> searchRankingNameList(@RequestParam("userNumbers") List<String> userNumbers) {
        List<String> usernames = userInfoService.getNameListByNumber(userNumbers);
        return usernames;
    }


}
